package cn.fangline.wo.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 房源图片表
 * </p>
 *
 * @author 抽离
 * @since 2017-05-03
 */
@TableName("house_img")
public class  HouseImg extends Model<HouseImg> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 所属城市
     */
	@TableField("city_id")
	private Integer cityId;
    /**
     * 房源编号
     */
	@TableField("house_id")
	private Long houseId;
    /**
     * 图片url
     */
	@TableField("img_url")
	private String imgUrl;
    /**
     * 图片类型
     */
	@TableField("img_type")
	private String imgType;
    /**
     * 图片描述
     */
	@TableField("img_desc")
	private String imgDesc;
    /**
     * 上传时间
     */
	@TableField("upload_time")
	private Date uploadTime;

	@TableField("origin_house_id")
	private String originHouseId;

	private Integer net;

	public String getOriginHouseId() {
		return originHouseId;
	}

	public void setOriginHouseId(String originHouseId) {
		this.originHouseId = originHouseId;
	}

	public Integer getNet() {
		return net;
	}

	public void setNet(Integer net) {
		this.net = net;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getCityId() {
		return cityId;
	}

	public void setCityId(Integer cityId) {
		this.cityId = cityId;
	}

	public Long getHouseId() {
		return houseId;
	}

	public void setHouseId(Long houseId) {
		this.houseId = houseId;
	}

	public String getImgUrl() {
		return imgUrl;
	}

	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}

	public String getImgType() {
		return imgType;
	}

	public void setImgType(String imgType) {
		this.imgType = imgType;
	}

	public String getImgDesc() {
		return imgDesc;
	}

	public void setImgDesc(String imgDesc) {
		this.imgDesc = imgDesc;
	}

	public Date getUploadTime() {
		return uploadTime;
	}

	public void setUploadTime(Date uploadTime) {
		this.uploadTime = uploadTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "HouseImg{" +
				"id=" + id +
				", cityId=" + cityId +
				", houseId=" + houseId +
				", imgUrl='" + imgUrl + '\'' +
				", imgType='" + imgType + '\'' +
				", imgDesc='" + imgDesc + '\'' +
				", uploadTime=" + uploadTime +
				", originHouseId='" + originHouseId + '\'' +
				", net=" + net +
				'}';
	}
}
